home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / games / larn12s.arc / TERMCAP.ARC / MAKEFILE < prev    next >
Text File  |  1987-10-28  |  962b  |  60 lines

  1. #
  2. #  FILE
  3. #
  4. #    Makefile    build termcap library
  5. #
  6. #  KEY WORDS
  7. #
  8. #    libraries
  9. #    test functions
  10. #
  11. #  SYNOPSIS
  12. #
  13. #    make        compile the library sources
  14. #    make tests    compile sources for tests
  15. #
  16. #  DESCRIPTION
  17. #
  18. #    Standard make file for building the termcap library and tests.
  19. #
  20. #  AUTHOR
  21. #
  22. #    Fred Fish
  23. #
  24.  
  25. CC    =    cc
  26. CFLAGS    =    -O -DDGK
  27.  
  28. LSOURCES =    tgetent.c tgetflag.c tgetnum.c tgetstr.c tgoto.c tputs.c \
  29.         isdigit.c fgetlr.c
  30.  
  31. LOBJECTS =    tgetent.o tgetflag.o tgetnum.o tgetstr.o tgoto.o \
  32.         tputs.o isdigit.o fgetlr.o
  33.  
  34. libtermc.a :    $(LOBJECTS)
  35.     ar rksv libtermc.a $(LOBJECTS) 
  36.  
  37. install: libtermc.a
  38.     mv libtermc.a \lib
  39.  
  40. all: libtermc.a tests
  41.     echo 'done'
  42.  
  43. tests :        testtcp.tos worms.ttp
  44.  
  45. worms.ttp:    worms.o
  46.     $(CC) -o worms.ttp worms.o -ltermcap
  47.  
  48. testtcp.tos :    testtcp.o
  49.     $(CC) -o testtcp.tos testtcp.o -ltermcap
  50.  
  51. testtcp.o :    testtcp.c
  52.     $(CC) -c $(CFLAGS) testtcp.c
  53.  
  54. #
  55. #    Clean up the directory.
  56. #
  57.  
  58. clean:
  59.         rm  *.o
  60.